Using aliases

Aliases provide a consistent access to Kanzi objects. You can use aliases to access objects both in Kanzi Studio and Kanzi Engine.

Creating an alias

To create an alias:

  1. In the Library right-click Aliases and select Create Alias.
  2. In the Properties set:

Using an alias to set a target for an action

To use an alias to define a target item for an action:

  1. Create an alias. See Creating an alias.
  2. Add a trigger to an object. See Using triggers.
  3. In the Properties click the Add drop-down menu select an action.
    For example, select Play Animation action
  4. In the Message Editor set the Target Item property to the alias you created in the first step.
  5. Click Save.

Using aliases to access objects in Kanzi Engine

To use aliases to access objects in Kanzi Engine use

/* Where #Alias points to the descendant and is located in a context */
/* reachable from the objectNode. */
descendantNode = kzuObjectNodeGetRelative(objectNode, "#Alias");

See also

Aliases

Shortcuts

Using shortcuts